/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.rationalsheet.parser.expression;

/**
 *
 * @author Overmind
 */
public class Skope
{
    private int begin;
    private int end;

    public Skope(int begin, int end)
    {
        this.begin = begin;
        this.end = end;
    }

    public int getBegin()
    {
        return begin;
    }

    public int getEnd()
    {
        return end;
    }

    @Override
    public String toString()
    {
        return "begin: " + begin + " end: " + end;
    }

    @Override
    public boolean equals(Object obj)
    {
        if (obj == null)
        {
            return false;
        }
        if (getClass() != obj.getClass())
        {
            return false;
        }
        final Skope other = (Skope) obj;
        if (this.begin != other.begin)
        {
            return false;
        }
        if (this.end != other.end)
        {
            return false;
        }
        return true;
    }
}
